<?php

use wechat\models\WeConfig;
use yii\web\View;

/**
 * Created by PhpStorm.
 * User: shutao
 * Date: 2018/9/13
 * Time: 17:51
 * @var View $this
 * @var WeConfig $model
 */
$this->title = '配置详情';
?>

<table class="layui-table">
    <tr>
        <td style="width: 120px;"><?php echo $model->getAttributeLabel('title') ?></td>
        <td><?php echo $model->title ?></td>
    </tr>

    <tr>
        <td><?php echo $model->getAttributeLabel('appid') ?></td>
        <td><?php echo $model->appid ?></td>
    </tr>
    <tr>
        <td><?php echo $model->getAttributeLabel('appsecret') ?></td>
        <td><?php echo $model->appsecret ?></td>
    </tr>
    <tr>
        <td><?php echo $model->getAttributeLabel('token') ?></td>
        <td><?php echo $model->token ?></td>
    </tr>
    <tr>
        <td><?php echo $model->getAttributeLabel('encodingaeskey') ?></td>
        <td><?php echo $model->encodingaeskey ?></td>
    </tr>
    <tr>
        <td><?php echo $model->getAttributeLabel('domain') ?></td>
        <td><?php echo $model->domain ?></td>
    </tr>
    <tr>
        <td><?php echo $model->getAttributeLabel('is_default') ?></td>
        <td><?php echo WeConfig::isDefaultText($model->is_default) ?></td>
    </tr>
    <tr>
        <td>URL</td>
        <td><?php echo \Yii::$app->request->hostInfo ?>/index.php?r=wechat/server/index&appid=<?php echo $model->appid ?></td>
    </tr>
</table>
